# New ports collection makefile for:	qt4-l10n
# Date created:		2008-12-13
# Whom:			Max Brazhnikov <makc@FreeBSD.org>
#
# $FreeBSD: ports/misc/qt4-l10n/Makefile,v 1.4 2010/01/21 21:13:18 makc Exp $
#

PORTNAME=	l10n
PORTVERSION=	${QT4_VERSION}
CATEGORIES?=	misc
PKGNAMEPREFIX=	qt4-

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Qt translations messages

USE_QT_VER=	4
QT_COMPONENTS=	linguist_build
QT_DIST=	yes
QT_NONSTANDARD=	yes

EXTRACT_AFTER_ARGS+=	| ${TAR} -xf - --include '${DISTNAME}/translations'

do-build:
	${LOCALBASE}/bin/lrelease ${WRKSRC}/translations/*.ts

do-install:
	${MKDIR} ${PREFIX}/share/qt/translations
	${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${PREFIX}/share/qt/translations

.include <bsd.port.mk>
